<%-- 
    Document   : update
    Created on : 06.10.2010, 13:30:27
    Author     : Markus Goetz
--%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="u" uri="http://nixis.de/jsp/tags/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<html>
    <head>
        <title>Update your profile</title>
    </head>
    <body>
        <h1>Update your profile</h1>

        <c:if test="${not empty it.violations}">
        <div class="error" style="background-color: red">
            <c:forEach var="violation" items="${it.violations}">
                <p>${violation}</p>
            </c:forEach>
        </div>
        </c:if>

        Username: ${it.user.name}<br/>
        Firstname: ${it.user.firstName}<br/>
        Lastname: ${it.user.lastName}<br/>
        <form method="post" action="<u:url value='/user/updatesave' />">
            E-Mail: <input type="text" name="email" value="${it.user.email}" /><br/>
            Password: <input type="password" name="password" /><br/>
            Password Verification: <input type="password" name="verification" />
            <input type="submit" value="submit"/><br/>
        </form>
</html>
